package com.ssy.lingxi.order.model.vo.basic.response;

import com.ssy.lingxi.order.model.constant.OrderServiceContants;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Map;

/**
 * 查询订单列表时返回的VO
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-15
 */
public class NoticeOrderQueryVO implements Serializable {

    public NoticeOrderQueryVO(Long id, String noticeNo, String digest, LocalDateTime createTime, LocalDateTime deliveryTime, String memberName, Integer status,Integer orderType) {
        this.id = id;
        this.noticeNo = noticeNo;
        this.digest = digest;
        this.createTime = createTime.format(OrderServiceContants.DEFAULT_TIME_FORMATTER);
        this.deliveryTime = deliveryTime.format(OrderServiceContants.DEFAULT_DATE_FORMATTER);
        this.memberName = memberName;
        this.status = status;
        this.orderType = orderType;
    }

    public NoticeOrderQueryVO(){}

    /**
     * 通知单id
     */
    private Long id;

    /**
     * 通知单号
     */
    private String  noticeNo;

    /**
     * 通知单摘要
     */
    private String digest;

    /**
     * 订单类型 1-b2b 2-srm
     */
    private Integer orderType;

    /**
     * 单据时间
     */
    private String createTime;

    /**
     * 送货时间
     */
    private String deliveryTime;

    /**
     * 采购会员名称
     */
    private String memberName;

    /**
     * 状态 1-待确认 2-待修订 3-已确认 4-已生成送货单 5-已作废
     */
    private Integer status;

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNoticeNo() {
        return noticeNo;
    }

    public void setNoticeNo(String noticeNo) {
        this.noticeNo = noticeNo;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(String deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
